#include <stdio.h>

void tran1(char CH1)
{
    if (CH1 >= 97 && CH1 <= 122)
    {
        CH1 = CH1 - 32;
        putchar(CH1);
    }
    else if (CH1 == 32)
    {
        char tLetter1 = getchar();
        if (tLetter1 >= 97 && tLetter1 <= 122)
        {
            tLetter1 = tLetter1 - 32;
            putchar(CH1);
            putchar(tLetter1);
        }
    }
    else
        putchar(CH1);
}


void tran(char CH)
{
    while (CH != '\n')
    {

        if (CH == 32)
        {

            char tLetter = getchar();
            if (tLetter >= 97 && tLetter <= 122)
            {
                tLetter = tLetter - 32;
                putchar(CH);
                putchar(tLetter);
            }
            else
                putchar(CH);
        }
        else
        {
            putchar(CH);
        }
        CH = getchar();

    }
}

int main()
{
    char ch;
    ch = getchar();
    tran1(ch);

    ch = getchar();
    tran(ch);
    return 0;
}